package com.xl.dubbo.demo.service.impl;

import com.xl.dubbo.demo.service.HelloDubboService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class HelloDubboServiceImpl implements HelloDubboService {

    @Override
    public String sayHelloWorld() {
        return "Hello World" + new SimpleDateFormat("YYYY-mm-dd HH:ss:mm").format(new Date());
    }

    public static void main(String[] args) throws IOException {
            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                    "spring/spring.xml");
            context.start();
            System.in.read();
    }
}

